package com.evangelion.jasper.domain;


/**
 * Date: 2/13/14
 */
public class Element {

    private final String type;

    protected String uuid;

    protected String key;

    protected int x;
    protected int y;
    protected int width;
    protected int height;

    private Color ownForeColor;
    private Color ownBackColor;
    
    private String text;
    
    public Element() {
        this.type = "ELEMENT";
    }

    public Element(String type) {
        this.type = type;
    }


    public String getType() {
        return type;
    }


    public String getUuid() {
        return uuid;
    }


    public void setUuid(String uuid) {
        this.uuid = uuid;
    }


    public String getKey() {
        return key;
    }


    public void setKey(String key) {
        this.key = key;
    }


    public int getX() {
        return x;
    }


    public void setX(int x) {
        this.x = x;
    }


    public int getY() {
        return y;
    }


    public void setY(int y) {
        this.y = y;
    }


    public int getWidth() {
        return width;
    }


    public void setWidth(int width) {
        this.width = width;
    }


    public int getHeight() {
        return height;
    }


    public void setHeight(int height) {
        this.height = height;
    }


    public Color getOwnForeColor() {
        return ownForeColor;
    }


    public void setOwnForeColor(Color ownForeColor) {
        this.ownForeColor = ownForeColor;
    }


    public Color getOwnBackColor() {
        return ownBackColor;
    }


    public void setOwnBackColor(Color ownBackColor) {
        this.ownBackColor = ownBackColor;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }
}
